package com.ruoyi.customerService.enums;

/**
 * 结算类型
 *
 * @author ruoyi
 */
public enum CsSheetHandleQualityEnum
{
    networkName("networkName", "网点名称"),
    contractAreaName("contractAreaName", "承包区信息"),
    sheetChannel("sheetChannel", "渠道维度"),
    sheetType("sheetType", "类型维度"),
    hqSolicitor("hqSolicitor", "处理人维度"),
    firstTimeoutRate("firstTimeoutRate", "首跟超时率"),
    firstTimeoutNum("firstTimeoutNum", "应首跟量"),
    handleTimeoutRate("handleTimeoutRate", "处理超时率"),
    handleTimeoutNum("handleTimeoutNum", "应处理量"),
    complaintRate("complaintRate", "被投诉率（万件）"),
    sheetCompletionRate("sheetCompletionRate", "工单完结率"),
    oneTimeResolutionRate("oneTimeResolutionRate", "一次性解决率"),
    avgHandlePeriod("avgHandlePeriod", "平均处理时长"),
    avgFirstPeriod("avgFirstPeriod", "平均首跟时长");

    private final String code;
    private final String info;

    CsSheetHandleQualityEnum(String code, String info)
    {
        this.code = code;
        this.info = info;
    }

    public String getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }

    public static String getValue(String code) {
        if (code == null) {
            return "";
        }
        for (CsSheetHandleQualityEnum value : CsSheetHandleQualityEnum.values()) {
            if (value.code.equals(code)){
                return value.info;
            }
        }
        return "";
    }
}
